{include file="../Public/header.html"}
<script type="text/javascript" src="__PUBLIC__/Js/jquery.SetTableBgColor.js"></script>
<script type="text/javascript">
var g = '{$smarty.const.GROUP_NAME}';
var m = '{$smarty.const.MODULE_NAME}';
var _hash_ = '{$_hash_}';
<!--{literal}-->
function unactive()
{
	$('#dialog>p').html('将屏蔽该商家所有未过期且未被领取的优惠券');
	$('#dialog').dialog('open');
	single_action('unactive');
}
$(document).ready(function(){
	$(".table-list").SetTableBgColor({
            odd:"even",
            even:"",
            selected:"",
            over:""
        });
	$('input[name=m_id]').each(function(){
					  $(this).click(function(){
												var m_id = $(this).val();
												var m_name = $(this).attr('rel');
										 		window.parent.pick_mall_handler({m_id:m_id,m_name:m_name});
										 });
					  });
});
<!--{/literal}-->
</script>
<div class="search-box">
    <form action="?">
    	<span>分类</span>
        <select name="c_id">
        <option value="0">不限...</option>
        <!--{foreach from=$categorys item=item key=key}-->
        <option value="{$item.id}">{$item.prefix}{$item.name}</option>
        <!--{/foreach}-->
        </select>
        <span>关键字</span>
        <input type="text" size="12" name="kw" value="" class="textinput">
		<small></small>
		<input type="submit" value="搜索" class="submit_btn">
        <input type="hidden" value="{$smarty.const.GROUP_NAME}" name="g">
		<input type="hidden" value="{$smarty.const.MODULE_NAME}" name="m">
		<input type="hidden" value="{$smarty.const.ACTION_NAME}" name="a">
  </form>
</div>
<table cellspacing="0" cellpadding="0" border="0" class="table-list list" id="checkList">
<thead>
<tr>
<th width="30" class="first">&nbsp;</th>
<th width="30">ID</th>
<th>名称</th>
<th>客服电话</th>
<th>网址</th>
</tr>
</thead>
<tbody>
<!--{foreach from=$malls item=item}-->
<tr id="tt-item-{$item.id}">
<td class="first"><input name="m_id" type="radio" value="{$item.id}" rel="{$item.name}" />&nbsp;</td>
<td>{$item.id}</td>
<td align="left">{$item.name}</td>
<td align="left">{$item.tel}</td>
<td align="left"><a href="{$item.website}" target="_blank">{$item.website}</a></td>
</tr>
<!--{/foreach}-->
</tbody></table>
<div class="pager">{$pagelink}</div>
{include file="../Public/footer.html"}